package com.hf.wujian.constant;

/**
 * 返回值常量
 *
 * 暂时只返回说明字符串，功能完成后返回消息类的gson格式字符串
 * @author hf
 * @date 2018/11/23
 * @version 1.0
 *
 */
public enum  ResultEnum{

    SUCCESS(10000,"请求成功"),
    UNPREPARED(10001,"未准备"),
    READY(10002,"已经准备"),
    HAVING_ROOM(10003,"已经有所属房间"),
    PLEASE_LOGIN(10004,"请先登录"),
    ROOMNAME_REPETITION(10005,"房间名重复"),
    USER_ALREADY_EXISTS(10006,"用户已存在"),
    WITHOUT_THIS_USER(10007,"无此用户"),
    ROOM_DOES_NOT_EXIST(10008,"房间不存在");

    public int id;
    public String result;

    ResultEnum(int id,String result){
        this.id = id;
        this.result = result;
    }
}
